from base.base import Base
from selenium.webdriver.common.by import By
class PageGoodDetail(Base):
    # 添加购物车按钮
    add_card = By.CSS_SELECTOR, "#join_cart"

    # 添加购物车【默认添加第一个】
    def page_click_add_card(self):
        self.base_click(self.add_card)